package com.kgame5.xtank3d.model.cart.comp {
import kgame5.k3d.core.obj3d.node3d.Mesh3D;
import kgame5.k3d.core.obj3d.node3d.animator.Animator3D;
import kgame5.k3d.core.obj3d.node3d.group3d.BestGroup3D;
import kgame5.k3d.core.obj3d.node3d.group3d.FastGroup3D;

import com.kgame5.xtank3d.resource.ResourceManagerX;

/**
 * @author kk
 * 类比于mc,只是持有各个部件而已
 */
public class CartGroup3D extends BestGroup3D{
	
	public var 
			md_body:Mesh3D,
			md_wheelA:Mesh3D,
			
			md_wheelC:Mesh3D;
		
	public function CartGroup3D(typeID:int){
		md_body=ResourceManagerX.getInstance().getTankBody(typeID) as Mesh3D;
		addChild(md_body);
		
		md_wheelA=ResourceManagerX.getInstance().getTankWheel(typeID,"A") as Mesh3D;
		md_wheelC=ResourceManagerX.getInstance().getTankWheel(typeID,"C") as Mesh3D;
		addChild(md_wheelA);
		addChild(md_wheelC);
		
		md_wheelA.z=-12;
		md_wheelC.z=18;
		md_wheelA.y=5;
		md_wheelC.y=5;
	}
}//end of class
}
